package com.ai.check;

public class InputCheck {
	
	public boolean checkName(String name) {
		if(name.length() > 20)
			return false;
		else
			return true;
	}
	
	public boolean checkAddress(String address) {
		if(address.length() > 50)
			return false;
		else
			return true;
	}
	
	public boolean checkJob(String job) {
		if(job.length() > 20)
			return false;
		else
			return true;
	}
	
	public boolean checkType(String type) {
		if(type.equals("年卡") || type.equals("次卡"))
			return true;
		else
			return false;
	}
	
	public boolean checkTimes(int times) {
		if(times < 0)
			return false;
		else
			return true;
	}
	
	
}
